<?php

namespace common\models\marathon;

use Yii;

/**
 * This is the model class for table "{{%marathon_enroll_attach}}".
 *
 * @property int $id
 * @property string $type 文件类型
 * @property int $user_id
 * @property int $player_id
 * @property int $enroll_id
 * @property string $path
 * @property int $created_at
 * @property int $updated_at
 */
class MarathonEnrollAttach extends \common\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%marathon_enroll_attach}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['user_id', 'player_id', 'enroll_id', 'created_at', 'updated_at'], 'integer'],
            [['type'], 'string', 'max' => 50],
            [['path'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'type' => '文件类型',
            'user_id' => 'User ID',
            'player_id' => 'Player ID',
            'enroll_id' => 'Enroll ID',
            'path' => 'Path',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
        ];
    }

}
